<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>销售退货单头部</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
  </head>
  <body>
    <table width="700" border="1" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="6">
          <div align="center" style="font-size:18px">
            <%=@companyName%>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="6">
          <div align="center" style="font-size:15px">
            <%if params[:sub_type] == '1'%>
              销售退货入库单
            <%else%>
              销售退货入库单
            <%end%>
          </div>
        </td>
      </tr>
      <tr>
        <td width="55">退库日期：</td>
        <td width="80"><%=@saleReturned.action_date %></td>
        <td width="50">退库仓库：</td>
        <td width="75"><%=@saleReturned.warehouse.name %></td>
        <td width="50">退库编号：</td>
        <td width="133"><%=@saleReturned.order_number %></td>
      </tr>
      <tr>
        <td>销售部门：</td>
        <td><%=@saleOrder.sell_department.name %></td>
        <td>业务员： </td>
        <td><%=@saleOrder.sales.name %></td>
        <td>销售编号：</td>
        <td><%=@saleOrder.order_number %></td>
      </tr>
      <tr>
        <td>客户名称：</td>
        <td colspan="3"><%=@saleOrder.customer.name %></td>
        <td>销售策略：</td>
        <td><%=@saleOrder.sales_strategy.name %></td>
      </tr>
      <tr>
        <td>说明：</td>
        <td colspan="5"><%=@saleReturned.description %></td>
      </tr>
    </table>
  </body>
</html>